<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js">
    </script>
</head>

<body>
    <!-- <div ng-app="">
    <p>名字 :
        <input type="text" ng-model="name">
    </p>
    <h1>Hello {{name}}</h1>
</div> -->
    <!-- <div ng-app="" ng-init="firstName='John'">
    <p>姓名为：
        <span ng-bind="firstName"></span>
    </p>
</div> -->

    <ng-app ng-app="" ng-init="firstName='John'">
        <p>姓名为：<span ng-bind="firstName"></span></p>
    </ng-app>


    <!-- <div ng-app="" ng-init="quantity=1;cost=5">
    <p>总价： {{ quantity * cost }}</p>
</div>  -->
    <!-- 使用 ng-bind绑定 -->
    <!-- <div ng-app="" ng-init="quantity=1;cost=5">
    <!-- <p>总价：
        <span ng-bind="quantity * cost"></span>
    </p>
</div>

<div ng-app="" ng-init="firstName='John';lastName='Doe'">
    <p>姓名： {{ firstName + " " + lastName }}</p>
</div> -->
    <!-- 使用 ng-bind绑定 -->
    <!-- <div ng-app="" ng-init="firstName='John';lastName='Doe'">
    <p>姓名：
        <span ng-bind="firstName + ' ' + lastName"></span>
    </p>
</div> -->

    <!-- <div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}">
        <p>姓为 {{ person.lastName }}</p>
    </div>
    <div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}">
        <p>姓为<span ng-bind="person.lastName"></span></p>
    </div> -->

    <!-- <div ng-app="" ng-init="points=[1,15,19,2,40]">
        <p>第三个值为 {{ points[2] }}</p>
    </div>
    <div ng-app="" ng-init="points=[1,15,19,2,40]">
        <p>第三个值为
            <span ng-bind="points[2]"></span>
        </p>
    </div> -->



</body>

</html>